package me.edzh.spring.bootstrap;

import me.edzh.spring.bootstrap.interceptor.AuthInterceptor;
import me.edzh.spring.bootstrap.resolvers.CurrentUserResolver;

public class Configurations {
    private static Configurations sInstance = new Configurations();

    private CurrentUserResolver.UserProvider userProvider;
    private AuthInterceptor.PrivilegesChecker checker;
    private Configurations(){

    }

    private static Configurations g(){
        return sInstance;
    }

    public static void setUserProvider(CurrentUserResolver.UserProvider provider){
        g().userProvider = provider;
    }

    public static CurrentUserResolver.UserProvider getProvider(){
        return g().userProvider;
    }
}
